package com.auth.service;

import java.util.List;
import org.apache.log4j.Logger;

import javax.annotation.Resource;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import com.auth.mapper.T_userMapper;
import com.auth.domain.T_user;

@Service("t_userService")
@Transactional
public class T_userService{
	private static Logger log = Logger.getLogger(T_userService.class.getName());

	@Resource
    private T_userMapper t_userMapper;


	public int save(T_user obj){
		 return t_userMapper.save(obj);
	}

	public int update(T_user obj){
		return t_userMapper.update(obj);
	}

	public int delete(T_user obj){
		return t_userMapper.delete(obj);
	}

	public T_user findById(T_user obj){
		return t_userMapper.findById(obj);
	}
	public List findAll(T_user obj ){
		 return t_userMapper.findAll(obj);
	}

	public int findCountAll(T_user obj ){
		 return t_userMapper.findCountAll(obj);
	}
}
